package com.example.dormitorymanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2021-06-06
 */
@ApiModel(value = "楼层对象")
public class Floor implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(name = "id",value = "数据库的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "floor",value = "楼层")
    private String floor;

    @ApiModelProperty(name = "number",value = "宿舍编号")
    private String number;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getFloor() {
        return floor;
    }

      public void setFloor(String floor) {
          this.floor = floor;
      }
    
    public String getNumber() {
        return number;
    }

      public void setNumber(String number) {
          this.number = number;
      }

    @Override
    public String toString() {
        return "Floor{" +
              "id=" + id +
                  ", floor=" + floor +
                  ", number=" + number +
              "}";
    }
}
